package com.grm.strategy.handler.impl;


import com.grm.strategy.factory.Factory;
import com.grm.strategy.handler.Handler;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class Handler1 extends Handler {
    @Override
    public String queryUserName(String username) {
        // 业务逻辑1
        log.info("Handler1 queryUserName----------------------------{}", username);
        return username + "''''''";
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        Factory.register("aaa", this);
    }
}
